package com.note.simpleadmin.vo;

import java.util.List;

public class PageBean<T> {
    private Integer totalPages;
    private Long totalElements;
    private Boolean first;
    private Boolean empty;
    private Integer pageNumber;
    private List<T> rows;

    public PageBean() {
    }

    public PageBean(Integer totalPages, Long totalElements, Boolean first, Boolean empty, Integer pageNumber, List<T> rows) {
        this.totalPages = totalPages;
        this.totalElements = totalElements;
        this.first = first;
        this.empty = empty;
        this.pageNumber = pageNumber;
        this.rows = rows;
    }

    public Integer getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(Integer totalPages) {
        this.totalPages = totalPages;
    }

    public Long getTotalElements() {
        return totalElements;
    }

    public void setTotalElements(Long totalElements) {
        this.totalElements = totalElements;
    }

    public Boolean getFirst() {
        return first;
    }

    public void setFirst(Boolean first) {
        this.first = first;
    }

    public Boolean getEmpty() {
        return empty;
    }

    public void setEmpty(Boolean empty) {
        this.empty = empty;
    }

    public Integer getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(Integer pageNumber) {
        this.pageNumber = pageNumber;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
}
